'use strict';
/**
 * 获取操作成功统计累计次数
 */
exports.main = async (event, context) => {
	const db = uniCloud.database();
	let userInfo = await db.collection('db-user-info').where({
		code: db.command.eq(event.code)
	}).field({
		accumulatedCount: true
	}).get();
	return userInfo.data[0].accumulatedCount;
};